package util;

import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTextField;

public class ActivityComment {
	public static String getComment()
	{	
		JLabel label = new JLabel("Enter Comment: ");
		JTextField comment = new JTextField();
		Object options[] = {label, comment};
		
		int option = JOptionPane.showOptionDialog(null, options, "Activity Comment", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null, new Object[] {"OK", "Cancel"}, options[0]);
		
		if(option == JOptionPane.NO_OPTION || option == JOptionPane.CLOSED_OPTION)
			return "Exit";
		
		
		return comment.getText();
	}
}
